package com.magina.productor.service.impl;

import com.magina.basic.api.SysLogService;
import com.magina.basic.model.SysLog;
import com.magina.productor.mapper.SysLogMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @ClassnName :com.magina.productor.service.impl.SysLogServiceImpl
 * @Author： Magina.Hu
 * @Date： 2019/4/23
 * @Description：
 * @Version: V1.0
 * Copyright (c) 2019-2020 .All rights reserved.
 */
@Service(version = "1.0.0")
public class SysLogServiceImpl implements SysLogService {


    @Autowired
    private SysLogMapper sysLogMapper;

    @Override
    public List<SysLog> findList() {
        System.out.println("enter findList!");
        return sysLogMapper.selectList(null);

    }

    @Override
    public void insert(SysLog sysLog) {
        sysLogMapper.insert(sysLog);
    }
}
